import org.powerbot.game.api.methods.Settings;
import org.powerbot.game.api.util.Timer;


public class MyTimer {

	public Timer timer;
	public int cooldown = 1;//used for EoC Cooldown timers
	public int healthCheck = 0;
	public int adrenaline = 0;
	public boolean needCombat = true;
	public int step = 0;
	public MyTimer(int cd)
	{
		Reset();
		cooldown = cd;
	}
	public MyTimer(int cd, int ad)
	{
		Reset();
		adrenaline = ad;
		cooldown = cd;
	}
	public MyTimer(int cd, int ad, int hp)
	{
		Reset();
		healthCheck = hp;
		cooldown = cd;
		adrenaline = ad;
	}
	public MyTimer(int cd, int ad, int hp,boolean nc)
	{
		Reset();
		healthCheck = hp;
		cooldown = cd;
		adrenaline = ad;
		needCombat = nc;
	}
	public void Reset()
	{
		timer = new Timer(0);
	}
	public boolean Ready()
	{
		if(step!=0)
		{
			
		}
		if((timer.getElapsed() >= ((cooldown + (step * 4)) * 1000)))
		{
			return true;
		}
		return false;
	}
	public int elapsed()
	{
		return (int)timer.getElapsed();
	}
}
